/*
 *    Copyright (c) 2018-2025, daoism All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: daoism
 */

package com.mkh.st.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 编码规则表
 *
 * @author daoism code generator
 * @date 2021-07-29 19:52:35
 */
@Data
@TableName("st_sn")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "编码规则表")
@Accessors(chain = true)
public class StSn extends Model<StSn> {
	private static final long serialVersionUID = 1L;

    /**
     * 编码id
     */
    @TableId
    @ApiModelProperty(value="编码id")
    private Long id;
    /**
     * 单据名称
     */
    @ApiModelProperty(value="单据名称")
    private String name;
    /**
     * 单据code
     */
    @ApiModelProperty(value="单据code")
    private String code;
    /**
     * 编码前缀
     */
    @ApiModelProperty(value="编码前缀")
    private String prefix;
    /**
     * 日期格式
     */
    @ApiModelProperty(value="日期格式")
    private String dateFormat;
    /**
     * 流水号位数
     */
    @ApiModelProperty(value="流水号位数")
    private Integer serialNumberSize;
    /**
     * 当前流水值
     */
    @ApiModelProperty(value="当前流水值")
    private Integer serialNumber;
    /**
     * 所属租户ID
     */
    @ApiModelProperty(value="所属租户ID",hidden=true)
    private Long tenantId;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private String createBy;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long createId;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value="更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

	@ApiModelProperty(value="")
	private Long updateId;
    /**
     * 删除标志位，1 表示删除，0 表示未删除
     */
    @ApiModelProperty(value="删除标志位，1 表示删除，0 表示未删除")
    private Integer delFlag;
    }
